Skip to content

Fix StringDType not roundtripping through Zarr v3 - #11474

Open
stanbot8 wants to merge 2 commits into
pydata:mainfrom
stanbot8:fix/11466-stringdtype-zarr
Open

Fix StringDType not roundtripping through Zarr v3#11474
stanbot8 wants to merge 2 commits into
pydata:mainfrom
stanbot8:fix/11466-stringdtype-zarr

Conversation

@stanbot8

@stanbot8 stanbot8 commented Jul 25, 2026

Copy link
Copy Markdown

Storage loses native NumPy StringDType metadata.

Preserve NumPy StringDType for variables, coordinates, and scalars in Zarr format 3 round trips.

Keep the existing UTF-8 encoding when a StringDType carries an na_object, because zarr rejects such a dtype natively. A test pins the routing.

Closes #11466.

@welcome

welcome Bot commented Jul 25, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

@github-actions github-actions Bot added topic-backends topic-zarr Related to zarr storage library io labels Jul 25, 2026
@stanbot8
stanbot8 force-pushed the fix/11466-stringdtype-zarr branch 2 times, most recently from db97531 to 0a42250 Compare July 27, 2026 06:28
@stanbot8
stanbot8 force-pushed the fix/11466-stringdtype-zarr branch from 0a42250 to 62c3064 Compare July 28, 2026 19:08
@stanbot8 stanbot8 changed the title Preserve StringDType in Zarr v3 round trips test: pin the utf8 fallback for a missing value string dtype Jul 28, 2026
@stanbot8 stanbot8 changed the title test: pin the utf8 fallback for a missing value string dtype Preserve StringDType in Zarr v3 round trips Jul 31, 2026
@stanbot8 stanbot8 changed the title Preserve StringDType in Zarr v3 round trips Fix StringDType not roundtripping through Zarr v3 Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

io topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StringDType does not roundtrip through zarr

1 participant